package chenji.yourinventory.events;

import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

public class LineSelectEvent extends Event implements Cancellable {
	private Player p;
	private int line;
	private static final HandlerList handlers = new HandlerList();
	private boolean isCanceled;

	public LineSelectEvent(final Player p, final int line) {
		this.p = p;
		this.line=line;
	}

	@Override
	public HandlerList getHandlers() {
		return handlers;
	}

	public static HandlerList getHandlerList() {
		return handlers;
	}

	public Player getPlayer() {
		return this.p;
	}

	public int getLine() {
		return this.line;
	}

	@Override
	public boolean isCancelled() {
		return this.isCanceled;
	}

	@Override
	public void setCancelled(boolean arg0) {
		this.isCanceled = arg0;

	}

}
